package com.ibiaoke.customer.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.customer.entity.Customer;
import com.ibiaoke.customer.entity.vo.CustomerVO;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/6/19.
 */
public interface CustomerService {

    List<Customer> listCustomer(String customerUsername, String customerNickname, String customerMobile, String customerEmail, Date startTime, Date endTime, Page page);

    void editCustomer(CustomerVO customerVO);

    Integer getCustomerId(String customerMobile);

    Customer getCustomerInfo(Integer customerId);

    Customer getCustomer(String mobile);

    int editLoginPassword(String customerMobile,String password);

    int updateLoginPassword(String customerMobile, String password,String newPassword);

    int forgetLoginPassword(String code, String newPassword, String mobile);

    int updateCustomerInfo(Integer customerId,CustomerVO customerVO);

    int updateCustomerInfos(Integer customerId, String headImageUrl, String nickName);

    int editUserMobile(Customer customer, CustomerVO customerVO);
}
